package Controladores;

import Modelos.Ruta;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author gerardo
 */
public class RutaObjetoEstado {
    
    protected Object objMemento;
    
    public void guardarEstadoRuta(Ruta ruta)
    {
        
        
        objMemento = ruta.crearMemento();
        
    }
    
    public void restaurarEstadoRuta(Ruta ruta)
    {
        ruta.setMemento(objMemento);
    }
    
}
